package com.huazhi.wzsnw.mapper;

import com.huazhi.wzsnw.model.Alert;
import com.huazhi.wzsnw.model.Lined;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Date;
import java.util.List;


public interface AlertMapper {
    int deleteByPrimaryKey(String tid);

    int insert(Alert record);

    int insertSelective(Alert record);

    Alert selectByPrimaryKey(String tid);

    int updateByPrimaryKeySelective(Alert record);

    int updateByPrimaryKey(Alert record);

//    List<String> selectAlertBySearch(@Param("number") String number, @Param("userTid") String userTid);
//
//    List<Alert> selectAlertByTid(@Param("listTid") List<String> listTid, @Param("pageIndex") Integer pageIndex, @Param("size") Integer size);
//
//    List<Alert> getNumber(@Param("number") String number);
//
//    void updateIsAlert(@Param("tid") String tid, @Param("isAlert") String isAlert);
//
//    List<String> selectAlertHistoricalBySearch(@Param("number") String number);
//
//    List<Alert> selectAlertHistoricalByTid(@Param("listTid") List<String> listTid, @Param("pageIndex") Integer pageIndex, @Param("size") Integer size);
    List<String> getSearchAlertList(@Param("key")String search,@Param("alert")Alert alert);

    List<Alert> findPagingByListTid(@Param("stringList")List<String> stringList,@Param("pageIndex")Integer pageIndex,@Param("pageSize")Integer pageSize);

    List<Alert> getAlertListByClassify(@Param("alert")Alert alert, @Param("pageIndex")Integer pageIndex,@Param("pageSize")Integer pageSize);

     List<Alert>  selectAllAlert();

     List<Alert> selectAllBynumber(@Param("number") String number);

     int delectAllYcl();
}